//
//  PushNative.m
//  community
//
//  Created by 王会华 on 2021/12/11.
//

#import "PushNative.h"
#import "AppDelegate.h"
#import "ChatViewController.h"

@implementation PushNative
RCT_EXPORT_MODULE();
RCT_EXPORT_METHOD(goToChat:(NSString*)chatId){
  dispatch_async(dispatch_get_main_queue(), ^{
    UINavigationController *nav=(UINavigationController*)[AppDelegate shareDelegate].window.rootViewController;
    ChatViewController *chatVC=[[ChatViewController alloc] init];
    [nav pushViewController:chatVC animated:YES];
  });
}
@end
